A civil war-era townhouse at 192 Columbia Heights has sold for $24.5 million in an off-market deal, marking the most expensive residential transaction in Brooklyn so far this year.